import { defineConfig } from 'umi';
import defaultSettings from './defaultSettings';
export default defineConfig({
  antd: {},
  dva: {
    immer: true,
    hmr: true,
  },
  layout: {
    // https://umijs.org/zh-CN/plugins/plugin-layout
    locale: false,
    siderWidth: 208,
    ...defaultSettings,
  },
  ignoreMomentLocale:true,
  dynamicImport: {
    loading: '@ant-design/pro-layout/es/PageLoading',
  },
  targets: {
    chrome: 79,
    firefox: false,
    safari: false,
    edge: false,
    ios: false,
  },
  nodeModulesTransform: {
    type: 'none',
    exclude: [],
  },
  routes: [{ path: '/', 
  name:'首页',
  component: '@/pages/index' },{ path: '/main', 
  name:'首页2',
  component: '@/pages/index' }],
  theme: {
    'primary-color': defaultSettings.primaryColor,
  },
  esbuild: {},
  manifest: {
    basePath: '/',
  },
  fastRefresh: {},
});
